From 611cde25ae9f5a7806c2615310b20dd35aed18a2 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 18 May 2006 10:46:07 +0100 Subject: [PATCH] Rename init_IRQ to xen_init_IRQ, so that non-x86 can use their own init_IRQ. Signed-off-by Kevin Tian --- linux-2.6-xen-sparse/drivers/xen/core/evtchn.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c index d51a986108..15fe014f33 100644 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c @@ -41,10 +41,10 @@ #include #include #include +#include #include #include #include -#include #include /* RTC_IRQ */ /* @@ -163,6 +163,12 @@ static inline unsigned int cpu_from_evtchn(unsigned int evtchn) /* Upcall to generic IRQ layer. */ #ifdef CONFIG_X86 extern fastcall unsigned int do_IRQ(struct pt_regs *regs); +void __init xen_init_IRQ(void); +void __init init_IRQ(void) +{ + irq_ctx_init(0); + xen_init_IRQ(); +} #if defined (__i386__) static inline void exit_idle(void) {} #define IRQ_REG orig_eax @@ -804,13 +810,11 @@ void irq_resume(void) } } -void __init init_IRQ(void) +void __init xen_init_IRQ(void) { int i; int cpu; - irq_ctx_init(0); - spin_lock_init(&irq_mapping_update_lock); init_evtchn_cpu_bindings(); -- 2.30.2